package org.wlgzs.shop.bean;

import lombok.Data;

import javax.validation.constraints.NotNull;
@Data
public class OrderTransportData {
    public OrderTransportData(){};

    /**
     *
     *订单id
     */
    private Integer orderId;

    public OrderTransportData(Float payment,boolean status,String createTime,Integer userId,Integer num,Float price,String picPath,String shippingName,int shippingCode,String consignTime) {
        this.consignTime=consignTime;
        this.shippingCode=shippingCode;
        this.shippingName=shippingName;
        this.createTime=createTime;
        this.payment = payment;
        this.status=status;
        this.userId=userId;
        this.num=num;
        this.price=price;
        this.picPath=picPath;
    }

    /**
     *
     *支付金额
     */
    @NotNull
    private Float payment;

    /**
     *
     *支付状态
     */
    @NotNull
    private Boolean status;

    /**
     *
     *邮费
     */
    @NotNull
    private Float postPerice;

    /**
     *
     *订单创建时间
     */
    @NotNull
    private String createTime;

    /**
     *
     *发货时间
     */
    private String consignTime;

    /**
     *
     *交易完成时间
     */
    private String endTime;

    /**
     *
     *物流名称
     */
    @NotNull
    private String shippingName;

    /**
     *
     *物流单号
     */
    @NotNull
    private Integer shippingCode;

    /**
     *
     *用户id
     */
    @NotNull
    private Integer userId;

    /**
     *
     *买家留言
     */
    private String buyerMessage;

    /**
     *
     *买家昵称
     */
    private String buyerNick;

    /**
     *
     *图片地址
     */
    @NotNull
    private String picPath;

    /**
     *
     *购买数量
     */
    @NotNull
    private Integer num;

    /**
     *
     *商品单价
     */
    @NotNull
    private Float price;

    public Integer getOrderId() {
        return orderId;
    }

    public void setOrderId(Integer orderId) {
        this.orderId = orderId;
    }

    public Float getPayment() {
        return payment;
    }

    public void setPayment(Float payment) {
        this.payment = payment;
    }

    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public Float getPostPerice() {
        return postPerice;
    }

    public void setPostPerice(Float postPerice) {
        this.postPerice = postPerice;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public String getConsignTime() {
        return consignTime;
    }

    public void setConsignTime(String consignTime) {
        this.consignTime = consignTime == null ? null : consignTime.trim();
    }

    public String getEndTime() {
        return endTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime == null ? null : endTime.trim();
    }

    public String getShippingName() {
        return shippingName;
    }

    public void setShippingName(String shippingName) {
        this.shippingName = shippingName == null ? null : shippingName.trim();
    }

    public Integer getShippingCode() {
        return shippingCode;
    }

    public void setShippingCode(Integer shippingCode) {
        this.shippingCode = shippingCode;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getBuyerMessage() {
        return buyerMessage;
    }

    public void setBuyerMessage(String buyerMessage) {
        this.buyerMessage = buyerMessage == null ? null : buyerMessage.trim();
    }

    public String getBuyerNick() {
        return buyerNick;
    }

    public void setBuyerNick(String buyerNick) {
        this.buyerNick = buyerNick == null ? null : buyerNick.trim();
    }

    public String getPicPath() {
        return picPath;
    }

    public void setPicPath(String picPath) {
        this.picPath = picPath == null ? null : picPath.trim();
    }

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Float getPrice() {
        return price;
    }

    public void setPrice(Float price) {
        this.price = price;
    }
}